//
//  CmtSecFensTableViewCell.m
//  Products_B
//
//  Created by lanou on 16/6/2.
//  Copyright © 2016年 朋学友. All rights reserved.
//

#import "CmtSecFensTableViewCell.h"
#import <UIImageView+WebCache.h>
@implementation CmtSecFensTableViewCell


- (IBAction)AttentionButtonAction:(id)sender {
}


-(void)setModel:(id)model{
    if ([model isKindOfClass:[CmtRecommendLike class]]) {
        CmtRecommendLike * likeModel = (CmtRecommendLike *)model;
        
        [self.head_img sd_setImageWithURL:[NSURL URLWithString:likeModel.head_img]];
        self.nicklabel.text = likeModel.nick;
        self.fens_count.text = [NSString stringWithFormat:@" 粉丝：%ld",(long)[likeModel.count_fensi integerValue]];
    }
    else{
    
        CmtSecAttenLike * likeModel = (CmtSecAttenLike *)model;
        
        [self.head_img sd_setImageWithURL:[NSURL URLWithString:likeModel.head_img]];
        self.nicklabel.text = likeModel.nick;
        self.fens_count.text = [NSString stringWithFormat:@" 粉丝：%ld",(long)[likeModel.count_fensi integerValue]];
    }
    
}




- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
